package com.aier.school.entity;


import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.Table;




/**
 * School entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "school_icard", catalog = "abc")
public class SchoolIcCard implements java.io.Serializable {

    // Fields 学校表
    private Long siid;        //主键
    private Integer sid;    //学校id
    private Long icid;        //ic卡id
    private Long cid;        //班级id
    private Short state;    //状态:10启用,20注销
    private Timestamp bsdate;    //绑定时间
    
    //扩展
    private String cardnum;    //卡号
    private String ifoot;//验证码


	private String name_card;    //归属人
    private String name_teacher;//绑定的教师名
    private String name_student;//绑定的学生名
    private String bsdate_str;
    private String state_str;
    private String sname;// 学校名称
    
    private String cname; // 班级名称
    private String identity; // 身份（学生或教工）
    
    public SchoolIcCard() {
        super();
    }
    
    public SchoolIcCard(Long siid, Integer sid, Long icid, Long cid,
            Short state, Timestamp bsdate) {
        super();
        this.siid = siid;
        this.sid = sid;
        this.icid = icid;
        this.cid = cid;
        this.state = state;
        this.bsdate = bsdate;
    }

    public Long getSiid() {
        return siid;
    }

    public void setSiid(Long siid) {
        this.siid = siid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Long getIcid() {
        return icid;
    }

    public void setIcid(Long icid) {
        this.icid = icid;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public Timestamp getBsdate() {
        return bsdate;
    }

    public void setBsdate(Timestamp timestamp) {
        this.bsdate = timestamp;
    }

    public String getCardnum() {
        return cardnum;
    }

    public void setCardnum(String cardnum) {
        this.cardnum = cardnum;
    }

    public String getName_teacher() {
        return name_teacher;
    }

    public void setName_teacher(String name_teacher) {
        this.name_teacher = name_teacher;
    }

    public String getName_student() {
        return name_student;
    }

    public void setName_student(String name_student) {
        this.name_student = name_student;
    }

    public String getBsdate_str() {
        return bsdate_str;
    }

    public void setBsdate_str(String bsdate_str) {
        this.bsdate_str = bsdate_str;
    }

    public String getName_card() {
        return name_card;
    }

    public void setName_card(String name_card) {
        this.name_card = name_card;
    }

    public String getState_str() {
        return state_str;
    }

    public void setState_str(String state_str) {
        this.state_str = state_str;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    
    public String getIfoot() {
		return ifoot;
	}

	public void setIfoot(String ifoot) {
		this.ifoot = ifoot;
	}


}